list1 = []
list2 = list()
list3 = [1,2,3,4,5]
print(list3)
for i in list3:
    print(i, end = '',)
print(list3[-2])
list3.append(6)
print(list3)
list3.insert(0,0)
print(list3)
list3.extend([7,8])
print(list3)
list4 = [11,98,38,74,17]
#list4.sort()
list4.reverse()
print(list4)
print(list3)
for i in list3:
    print(i, end='')
print(list3[0])
print(list3[-2])
print(list3[1:4])
#字典
dict0 = {}
dict1 = dict()
dict2 = {'name':'张三'}
print(dict2)
print(dict2['name'])
print(dict2.get('id','没有数据'))
per_info = {'001': '张三', '002': '李四', '003': '王五', '004': '赵六'}
print(per_info.pop('001'))
print(per_info)


